package cn.edu.ecut.se2024.service;

import cn.edu.ecut.se2024.dao.Purchase_ReportDao;
import cn.edu.ecut.se2024.dao.ShoppingCartDao;
import cn.edu.ecut.se2024.exception.OperationFailedException;
import cn.edu.ecut.se2024.model.Purchase_Report.CostAnalysis;
import cn.edu.ecut.se2024.model.Purchase_Report.PurchaseReport;
import cn.edu.ecut.se2024.model.Purchase_Report.SupplierPerformance;
import cn.edu.ecut.se2024.model.ShoppingCart;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Purchase_ReportService {
    @Autowired
    private Purchase_ReportDao purchaseReportDao;

    public List<PurchaseReport> PurchaseReportService(){

        return purchaseReportDao.PurchaseReportDao();
    }
    public List<CostAnalysis> CostAnalysisService(){
        return purchaseReportDao.CostAnalysisDao();
    }
    public List<SupplierPerformance> SupplierPerformanceService(){
        return purchaseReportDao.SupplierPerformanceDao();
    }
}
